<div class="col-md-8 col-sm-8">
	<div class="panel panel-primary">
		<div class="panel-heading">
		  <h3 class="panel-title">Tìm kiếm việc làm PG-PB-MODEL</h3>
		</div>
		<div class="panel-body">		
			<form class="form-inline" role="form" action="<?=site_url($this->uri->uri_string())?>" method="get">
					<div class="form-group">
						<label>Tỉnh: </label>
					<?php $tinh_thanh = $this->session->userdata('tinh_thanh');
						if(!$tinh_thanh) $tinh_thanh = array();
					?>
					<?php echo form_dropdown('tinh_thanh',$tinh_thanh,$sterm['tinh_thanh'],'class="form-control" id="tinh_thanh"');?>
					</div>
				<?/*
				<div class="col-md-4">
					<div class="form-group">
						<label>Sở trường: </label>
					<?php $dich_vu = $this->session->userdata('dich_vu');
						if(!$dich_vu) $dich_vu = array();
					?>
					<?php echo form_multiselect('dichvu[]',$dich_vu,$sterm['dichvu'],'class="multiselect" id="dichvu"');?>
					</div>
				</div>*/?>
					<div class="form-group">
						<label>Loại hình: </label>
						<?php echo form_dropdown('lhinh', $loai_hinh, $sterm['lhinh'],'class="form-control" style=""');?>
					</div>
					<div class="form-group">
						<button type="submit" class="btn btn-default ">Tìm kiếm</button>
					</div>
			</form>
		</div>
	</div>
	<div class="panel panel-primary">
		<div class="panel-heading">
		  <h3 class="panel-title"><?=isset($page_title)?$page_title:''?></h3>
		</div>
		<div class="panel-body">
			<table class="table table-dashed" width="100%">
				<thead>
					<th width="50px" class="text-center">Mã tin</th>
					<th width="80px" class="text-center">Nhà tuyển dụng</th>
					<th class="text-center">Tiêu đề</th>
					<th width="140px" class="text-center">Địa điểm</th>
					<th width="80px" class="text-center">Ngày đăng</th>
				</thead>
				<tbody>
				<?php $status = array('Chờ duyệt', 'Đã duyệt', 'Khóa');
					foreach($list as $obj):
					$cls = 'class=';
					if($obj->vip) $cls .= '"success " title="Tin vip"';
					if($obj->hot) $cls .= '"danger " title="Tin hot"';
					$cls .='';
				?>
					<tr <?=$cls?>>
						<td><?=$obj->code?></td>		
						<td class="text-center">
						<?php if($obj->avatar):?>
							<a title="<?=$obj->ten?>">
								<img src="/assets/timthumb.php?w=60&src=<?=base_url('uploads/images/full/'.$obj->avatar)?>" alt="<?=$obj->ten?>"/>
							</a>
						<?php else:?>
							<a title="<?=$obj->ten?>">
								<img src="/assets/timthumb.php?w=60&src=<?=base_url('assets/img/no_logo.png')?>" alt="<?=$obj->ten?>"/>
							</a>
						<?php endif;?>
						</td>
						<td>
							<a href="<?=site_url('tin-tuyen-dung/'.remove_accents($obj->tieu_de).'-'.$obj->id)?>" title="<?=$obj->tieu_de?>"><?=$obj->tieu_de?></a>				
						</td>
						<td><?=$obj->dia_diem?></td>
						<td><?=date('d/m/Y', strtotime($obj->ngay_dang))?></td>
					</tr>	
				<?php endforeach;?>
				</tbody>
			</table>
			<div class="text-center">			
				<?php echo $this->pagination->create_links(); ?>
			</div>
		</div>
	</div>
</div>
